gdk/wayland: Do not use xdg_wm_base.ping serials as "user input" serials
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 4 Nov 2021 13:40:21 +0000 (14:40 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 5 Nov 2021 13:42:53 +0000 (14:42 +0100)
Ping/pong serials are not meant to be interpreted as user input serials
(e.g. those given back later to the compositor on grabs). As a matter
of fact, Mutter uses a different count (i.e. timestamps) in these, so
using these serials may confuse the compositor into denying certain
operations like DnD.

gdk/wayland/gdkdisplay-wayland.c

index 8828d6e987f9ffd969e70fa0b75fe71ce9b32ec2..a277954832b0d99752d94c31a6893540fd8e985c 100644 (file)
@@ -130,10 +130,6 @@ xdg_wm_base_ping (void               *data,
                   struct xdg_wm_base *xdg_wm_base,
                   uint32_t            serial)
 {
-  GdkWaylandDisplay *display_wayland = data;
-
-  _gdk_wayland_display_update_serial (display_wayland, serial);
-
   GDK_NOTE (EVENTS,
             g_message ("ping, shell %p, serial %u\n", xdg_wm_base, serial));